package com.one.rope.mvp.web.common.dto.user.business;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

/**
 * <p>
 * 合伙人岗位列表返回参数
 * <p>
 *
 * @author ： Weijian.Liu
 * @date ： 2020/3/17 23:32
 */
@Data
@ApiModel
public class PartnerListVO {

  @ApiModelProperty(value = "项目名称")
  @JsonProperty("project_name")
  private String projectName;

  @ApiModelProperty(value = "岗位数量")
  @JsonProperty("partner_num")
  private Integer partnerNum;

  @ApiModelProperty(value = "岗位列表")
  @JsonProperty("partner_list")
  private List<PartnerListItemVO> partnerList;

  public Integer getPartnerNum(){
    return partnerList.size();
  }
}
